# +----------------------------------------------------------------------
# | ChatWork智能聊天办公系统
# +----------------------------------------------------------------------
# | 软件声明: 本系统并非自由软件,未经授权任何形式的商业使用均属非法。
# | 版权保护: 任何企业和个人不允许对程序代码以任何形式任何目的复制/分发。
# | 授权要求: 如有商业使用需求,请务必先与版权所有者取得联系并获得正式授权。
# +----------------------------------------------------------------------
# | Author: ChatWork Team <2474369941@qq.com>
# +----------------------------------------------------------------------
from pydantic import BaseModel, Field


class CensorDetailVo(BaseModel):
    """ 审查配置详情Vo """
    channel: str = Field(default="baidu", description="审查通道: [baidu=百度, aliyun=阿里]")
    review_question: bool = Field(default=False, description="AI问题审查")
    review_draws: bool = Field(default=False, description="AI绘画审查")
    review_video: bool = Field(default=False, description="AI视频审查")
    review_music: bool = Field(default=False, description="AI音乐审查")
    review_users: bool = Field(default=False, description="用户信息审查")
    review_texts: bool = Field(default=False, description="其它输入审查")
    review_image: bool = Field(default=False, description="上传图片审查")
    baidu_app_id: str = Field(default="", max_length=300, description="AppId")
    baidu_api_key: str = Field(default="", max_length=300, description="ApiKey")
    baidu_secret_key: str = Field(default="", max_length=300, description="SecretKey")
    aliyun_api_key: str = Field(default="", max_length=300, description="AccessKeyId")
    aliyun_secret_key: str = Field(default="", max_length=300, description="AccessKeySecret")

    class Config:
        json_schema_extra = {
            "example": {
                "channel": "baidu",
                "review_question": False,
                "review_draws": False,
                "review_video": False,
                "review_music": False,
                "review_users": False,
                "review_texts": False,
                "review_image": False,
                "baidu_app_id": "",
                "baidu_api_key": "",
                "baidu_secret_key": "",
                "aliyun_api_key": "",
                "aliyun_secret_key": ""
            }
        }
